import { BooleanNumber } from "../../utils/data";

export interface DataViewerProps {
  datas: {
    name: string;
    dataSet: string[][],
    defaultShow: BooleanNumber;
    json: any;
    img?: string;
  }[];
  project: {
    uuid: string;
    name: string;
    rule: {
      xLog?: boolean;
      yLog?: boolean;
      xMin?: number;
      xMax?: number;
      yMin?: number;
      yMax?: number;
      maxYMin?: number; // 默认y最小值，但超出后自适应
      minYMax?: number; // 默认y最大值，但超出后自适应
    }
    desc: string;
    type: 'IMG' | 'TABLE' | 'DIGITAL';
  }
  // targets: {
  //   projectUuid: string;
  //   name: string;
  //   dataSet: string[][]
  //   default: boolean;
  // }[]
}

export interface DataViewerCommonRef{
  download: ()=>void;
}
